#include "textflag.h"

// func getg() unsafe.Pointer
TEXT ·getg(SB), NOSPLIT, $0-8
    MOVD	LR, R16   // save LR to use as return
    MOVD	g, R0     // load g
    MOVD	R0, ret+0(FP)
    MOVD	R16, LR   // restore LR
    RET
